<%--
说明：策略组表 明细页面

@author liuxun 2012-03-23
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<title>策略组表明细</title>
<script type="text/javascript">
$(function() {
  var policy_grp_id = $('#policy_grp_id').val();
  $('#tabs').tabs({
    onSelect : function(title) {
      if (title == '选择命令策略') {
        if (!isEmpty($('#selectCmdPolicyFrame').attr('src'))) {
          return;
        }
        $('#selectCmdPolicyFrame').attr('src','D_POLICYGRP_POLICY!showSelectCmdPolicy.do?model.policy_grp_id=' +policy_grp_id);
      }   
      if (title == '选择IP策略') {
        if (!isEmpty($('#selectIPPolicyFrame').attr('src'))) {
          return;
        }
        $('#selectIPPolicyFrame').attr('src','D_POLICYGRP_POLICY!showSelectIPPolicy.do?model.policy_grp_id=' +policy_grp_id);
      }   
      if (title == '选择时间策略') {
        if (!isEmpty($('#selectTimePolicyFrame').attr('src'))) {
          return;
        }
        $('#selectTimePolicyFrame').attr('src','D_POLICYGRP_POLICY!showSelectTimePolicy.do?model.policy_grp_id=' +policy_grp_id);
      }   
      if (title == '策略组与策略关系') {
          if (!isEmpty($('#selectPolicysFrame').attr('src'))) {
            return;
          }
          $('#selectPolicysFrame').attr('src','D_POLICYGRP_POLICY!showSelectPolicysIndex.do?model.policy_grp_id=' +policy_grp_id);
       }
    }
  });// 显示tab标签
});
</script>
</head>

<body>
<input type="hidden" id="policy_grp_id" name="policy_grp_id" value="${model.policy_grp_id}" />

  <div id="tabs" class="easyui-tabs" fit="true" width="100%" height="100%">

    <div title="基本信息" icon="icon-sys">

      <table style="width: 100%; height: 100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top">

            <table border="0" cellpadding="0" cellspacing="0" class="infoTableBorder">
              <tr>
                <td>
                  <table style="width: 100%" align="center" border="0" cellPadding="0" cellSpacing="0" class="infoTable">
                    <tr>
                      <td style="height: 40px;" colspan="2" class="infoConstLabelTD">&nbsp;</td>
                    </tr>

                    <tr>
                      <td align="right" class="infoLabelTD" width="20%" nowrap>策略组名称：&nbsp;</td>
                      <td align="left" class="infoContentTD" width="30%">&nbsp; ${model.policy_grp_name}</td>
                    </tr>

                    <tr>
                      <td align="right" class="infoLabelTD" width="20%" nowrap>描述：&nbsp;</td>
                      <td align="left" class="infoContentTD" width="30%">&nbsp; ${model.policy_grp_desc}</td>
                    </tr>

                    <tr>
                      <td align="right" class="infoLabelTD" colspan="2" nowrap="nowrap">&nbsp;</td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
    
    
    <c:if test="${not empty model.policy_grp_id}">
    <div title="选择命令策略" icon="tab-icon">
      <table border="0" style="width: 100%; height: 100%" cellspacing="0" cellpadding="0" class="resizeTable">
        <tr>
          <td nowrap="nowrap" align="left" style="width: 100%; height: 100%"><iframe id="selectCmdPolicyFrame" name="selectCmdPolicyFrame" src="" frameborder=0 scrolling="auto"></iframe>
          </td>
        </tr>
      </table>
    </div>
    <div title="选择IP策略" icon="tab-icon">
      <table border="0" style="width: 100%; height: 100%" cellspacing="0" cellpadding="0" class="resizeTable">
        <tr>
          <td nowrap="nowrap" align="left" style="width: 100%; height: 100%"><iframe id="selectIPPolicyFrame" name="selectIPPolicyFrame" src="" frameborder=0 scrolling="auto"></iframe>
          </td>
        </tr>
      </table>
    </div>
    <div title="选择时间策略" icon="tab-icon">
      <table border="0" style="width: 100%; height: 100%" cellspacing="0" cellpadding="0" class="resizeTable">
        <tr>
          <td nowrap="nowrap" align="left" style="width: 100%; height: 100%"><iframe id="selectTimePolicyFrame" name="selectTimePolicyFrame" src="" frameborder=0 scrolling="auto"></iframe>
          </td>
        </tr>
      </table>
    </div>
    <div title="策略组与策略关系" icon="tab-icon">
      <table border="0" style="width: 100%; height: 100%" cellspacing="0" cellpadding="0" class="resizeTable">
        <tr>
          <td nowrap="nowrap" align="left" style="width: 100%; height: 100%"><iframe id="selectPolicysFrame" name="selectPolicysFrame" src="" frameborder=0 scrolling="auto"></iframe>
          </td>
        </tr>
      </table>
    </div>
    
    </c:if> 
    
  </div>
  </div>
  </div>

</body>
</html>